package com.sc1905.crane.mapper;

import com.sc1905.crane.pojo.NNovel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NNovelMapper {
    int deleteByPrimaryKey(Integer bookid);

    int insert(NNovel record);

    int insertSelective(NNovel record);

    NNovel selectByPrimaryKey(Integer bookid);

    int updateByPrimaryKeySelective(NNovel record);

    int updateByPrimaryKey(NNovel record);

    String novelType(Integer typeId);

    List<NNovel> otherWorks(@Param(value = "userId") Integer userId,@Param(value="novelId") Integer novelId);
}